package com.ruoyi.departure.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车次对象 departure
 * 
 * @author qingshi
 * @date 2021-06-13
 */
public class Departure extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车次id */
    private Long id;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String license;

    /** 司机工号 */
    @Excel(name = "司机工号")
    private String driverNum;

    /** 出发日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出发日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date departureDate;

    /** 出发地 */
    @Excel(name = "出发地")
    private String departure;

    /** 目的地 */
    @Excel(name = "目的地")
    private String destination;

    /** 上架/下架 */
    @Excel(name = "上架/下架")
    private Integer online;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;

    /** 员工座位 */
    @Excel(name = "员工座位")
    private Long sSeat;

    /** 普通座位 */
    @Excel(name = "普通座位")
    private Long nSeat;

    /** 员工剩余 */
    @Excel(name = "员工剩余")
    private Long sAllow;

    /** 普通剩余 */
    @Excel(name = "普通剩余")
    private Long nAllow;

    /** 员工票价 */
    @Excel(name = "员工票价")
    private Long sPrice;

    /** 普通票价 */
    @Excel(name = "普通票价")
    private Long nPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setLicense(String license) 
    {
        this.license = license;
    }

    public String getLicense() 
    {
        return license;
    }
    public void setDriverNum(String driverNum) 
    {
        this.driverNum = driverNum;
    }

    public String getDriverNum() 
    {
        return driverNum;
    }
    public void setDepartureDate(Date departureDate) 
    {
        this.departureDate = departureDate;
    }

    public Date getDepartureDate() 
    {
        return departureDate;
    }
    public void setDeparture(String departure) 
    {
        this.departure = departure;
    }

    public String getDeparture() 
    {
        return departure;
    }
    public void setDestination(String destination) 
    {
        this.destination = destination;
    }

    public String getDestination() 
    {
        return destination;
    }
    public void setOnline(Integer online) 
    {
        this.online = online;
    }

    public Integer getOnline() 
    {
        return online;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setsSeat(Long sSeat) 
    {
        this.sSeat = sSeat;
    }

    public Long getsSeat() 
    {
        return sSeat;
    }
    public void setnSeat(Long nSeat) 
    {
        this.nSeat = nSeat;
    }

    public Long getnSeat() 
    {
        return nSeat;
    }
    public void setsAllow(Long sAllow) 
    {
        this.sAllow = sAllow;
    }

    public Long getsAllow() 
    {
        return sAllow;
    }
    public void setnAllow(Long nAllow) 
    {
        this.nAllow = nAllow;
    }

    public Long getnAllow() 
    {
        return nAllow;
    }
    public void setsPrice(Long sPrice) 
    {
        this.sPrice = sPrice;
    }

    public Long getsPrice() 
    {
        return sPrice;
    }
    public void setnPrice(Long nPrice) 
    {
        this.nPrice = nPrice;
    }

    public Long getnPrice() 
    {
        return nPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("license", getLicense())
            .append("driverNum", getDriverNum())
            .append("departureDate", getDepartureDate())
            .append("departure", getDeparture())
            .append("destination", getDestination())
            .append("online", getOnline())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .append("sSeat", getsSeat())
            .append("nSeat", getnSeat())
            .append("sAllow", getsAllow())
            .append("nAllow", getnAllow())
            .append("sPrice", getsPrice())
            .append("nPrice", getnPrice())
            .toString();
    }
}
